home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / layout / nsIBoxObject.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  15KB  |  346 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIBoxObject.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIBoxObject_h__
  6. #define __gen_nsIBoxObject_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. #ifndef __gen_nsIBoxLayoutManager_h__
  14. #include "nsIBoxLayoutManager.h"
  15. #endif
  16.  
  17. #ifndef __gen_nsIBoxPaintManager_h__
  18. #include "nsIBoxPaintManager.h"
  19. #endif
  20.  
  21. /* For IDL files that don't want to include root IDL files. */
  22. #ifndef NS_NO_VTABLE
  23. #define NS_NO_VTABLE
  24. #endif
  25. class nsIDOMElement; /* forward declaration */
  26.  
  27.  
  28. /* starting interface:    nsIBoxObject */
  29. #define NS_IBOXOBJECT_IID_STR "caabf76f-9d35-401f-beac-3955817c645c"
  30.  
  31. #define NS_IBOXOBJECT_IID \
  32.   {0xcaabf76f, 0x9d35, 0x401f, \
  33.     { 0xbe, 0xac, 0x39, 0x55, 0x81, 0x7c, 0x64, 0x5c }}
  34.  
  35. class NS_NO_VTABLE nsIBoxObject : public nsISupports {
  36.  public: 
  37.  
  38.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IBOXOBJECT_IID)
  39.  
  40.   /* readonly attribute nsIDOMElement element; */
  41.   NS_IMETHOD GetElement(nsIDOMElement * *aElement) = 0;
  42.  
  43.   /* attribute nsIBoxLayoutManager layoutManager; */
  44.   NS_IMETHOD GetLayoutManager(nsIBoxLayoutManager * *aLayoutManager) = 0;
  45.   NS_IMETHOD SetLayoutManager(nsIBoxLayoutManager * aLayoutManager) = 0;
  46.  
  47.   /* attribute nsIBoxPaintManager paintManager; */
  48.   NS_IMETHOD GetPaintManager(nsIBoxPaintManager * *aPaintManager) = 0;
  49.   NS_IMETHOD SetPaintManager(nsIBoxPaintManager * aPaintManager) = 0;
  50.  
  51.   /* readonly attribute long x; */
  52.   NS_IMETHOD GetX(PRInt32 *aX) = 0;
  53.  
  54.   /* readonly attribute long y; */
  55.   NS_IMETHOD GetY(PRInt32 *aY) = 0;
  56.  
  57.   /* readonly attribute long screenX; */
  58.   NS_IMETHOD GetScreenX(PRInt32 *aScreenX) = 0;
  59.  
  60.   /* readonly attribute long screenY; */
  61.   NS_IMETHOD GetScreenY(PRInt32 *aScreenY) = 0;
  62.  
  63.   /* readonly attribute long width; */
  64.   NS_IMETHOD GetWidth(PRInt32 *aWidth) = 0;
  65.  
  66.   /* readonly attribute long height; */
  67.   NS_IMETHOD GetHeight(PRInt32 *aHeight) = 0;
  68.  
  69.   /* nsISupports getPropertyAsSupports (in wstring propertyName); */
  70.   NS_IMETHOD GetPropertyAsSupports(const PRUnichar *propertyName, nsISupports **_retval) = 0;
  71.  
  72.   /* void setPropertyAsSupports (in wstring propertyName, in nsISupports value); */
  73.   NS_IMETHOD SetPropertyAsSupports(const PRUnichar *propertyName, nsISupports *value) = 0;
  74.  
  75.   /* wstring getProperty (in wstring propertyName); */
  76.   NS_IMETHOD GetProperty(const PRUnichar *propertyName, PRUnichar **_retval) = 0;
  77.  
  78.   /* void setProperty (in wstring propertyName, in wstring propertyValue); */
  79.   NS_IMETHOD SetProperty(const PRUnichar *propertyName, const PRUnichar *propertyValue) = 0;
  80.  
  81.   /* void removeProperty (in wstring propertyName); */
  82.   NS_IMETHOD RemoveProperty(const PRUnichar *propertyName) = 0;
  83.  
  84.   /* readonly attribute nsIDOMElement parentBox; */
  85.   NS_IMETHOD GetParentBox(nsIDOMElement * *aParentBox) = 0;
  86.  
  87.   /* readonly attribute nsIDOMElement firstChild; */
  88.   NS_IMETHOD GetFirstChild(nsIDOMElement * *aFirstChild) = 0;
  89.  
  90.   /* readonly attribute nsIDOMElement lastChild; */
  91.   NS_IMETHOD GetLastChild(nsIDOMElement * *aLastChild) = 0;
  92.  
  93.   /* readonly attribute nsIDOMElement nextSibling; */
  94.   NS_IMETHOD GetNextSibling(nsIDOMElement * *aNextSibling) = 0;
  95.  
  96.   /* readonly attribute nsIDOMElement previousSibling; */
  97.   NS_IMETHOD GetPreviousSibling(nsIDOMElement * *aPreviousSibling) = 0;
  98.  
  99.   /* wstring getLookAndFeelMetric (in wstring propertyName); */
  100.   NS_IMETHOD GetLookAndFeelMetric(const PRUnichar *propertyName, PRUnichar **_retval) = 0;
  101.  
  102. };
  103.  
  104. /* Use this macro when declaring classes that implement this interface. */
  105. #define NS_DECL_NSIBOXOBJECT \
  106.   NS_IMETHOD GetElement(nsIDOMElement * *aElement); \
  107.   NS_IMETHOD GetLayoutManager(nsIBoxLayoutManager * *aLayoutManager); \
  108.   NS_IMETHOD SetLayoutManager(nsIBoxLayoutManager * aLayoutManager); \
  109.   NS_IMETHOD GetPaintManager(nsIBoxPaintManager * *aPaintManager); \
  110.   NS_IMETHOD SetPaintManager(nsIBoxPaintManager * aPaintManager); \
  111.   NS_IMETHOD GetX(PRInt32 *aX); \
  112.   NS_IMETHOD GetY(PRInt32 *aY); \
  113.   NS_IMETHOD GetScreenX(PRInt32 *aScreenX); \
  114.   NS_IMETHOD GetScreenY(PRInt32 *aScreenY); \
  115.   NS_IMETHOD GetWidth(PRInt32 *aWidth); \
  116.   NS_IMETHOD GetHeight(PRInt32 *aHeight); \
  117.   NS_IMETHOD GetPropertyAsSupports(const PRUnichar *propertyName, nsISupports **_retval); \
  118.   NS_IMETHOD SetPropertyAsSupports(const PRUnichar *propertyName, nsISupports *value); \
  119.   NS_IMETHOD GetProperty(const PRUnichar *propertyName, PRUnichar **_retval); \
  120.   NS_IMETHOD SetProperty(const PRUnichar *propertyName, const PRUnichar *propertyValue); \
  121.   NS_IMETHOD RemoveProperty(const PRUnichar *propertyName); \
  122.   NS_IMETHOD GetParentBox(nsIDOMElement * *aParentBox); \
  123.   NS_IMETHOD GetFirstChild(nsIDOMElement * *aFirstChild); \
  124.   NS_IMETHOD GetLastChild(nsIDOMElement * *aLastChild); \
  125.   NS_IMETHOD GetNextSibling(nsIDOMElement * *aNextSibling); \
  126.   NS_IMETHOD GetPreviousSibling(nsIDOMElement * *aPreviousSibling); \
  127.   NS_IMETHOD GetLookAndFeelMetric(const PRUnichar *propertyName, PRUnichar **_retval); 
  128.  
  129. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  130. #define NS_FORWARD_NSIBOXOBJECT(_to) \
  131.   NS_IMETHOD GetElement(nsIDOMElement * *aElement) { return _to GetElement(aElement); } \
  132.   NS_IMETHOD GetLayoutManager(nsIBoxLayoutManager * *aLayoutManager) { return _to GetLayoutManager(aLayoutManager); } \
  133.   NS_IMETHOD SetLayoutManager(nsIBoxLayoutManager * aLayoutManager) { return _to SetLayoutManager(aLayoutManager); } \
  134.   NS_IMETHOD GetPaintManager(nsIBoxPaintManager * *aPaintManager) { return _to GetPaintManager(aPaintManager); } \
  135.   NS_IMETHOD SetPaintManager(nsIBoxPaintManager * aPaintManager) { return _to SetPaintManager(aPaintManager); } \
  136.   NS_IMETHOD GetX(PRInt32 *aX) { return _to GetX(aX); } \
  137.   NS_IMETHOD GetY(PRInt32 *aY) { return _to GetY(aY); } \
  138.   NS_IMETHOD GetScreenX(PRInt32 *aScreenX) { return _to GetScreenX(aScreenX); } \
  139.   NS_IMETHOD GetScreenY(PRInt32 *aScreenY) { return _to GetScreenY(aScreenY); } \
  140.   NS_IMETHOD GetWidth(PRInt32 *aWidth) { return _to GetWidth(aWidth); } \
  141.   NS_IMETHOD GetHeight(PRInt32 *aHeight) { return _to GetHeight(aHeight); } \
  142.   NS_IMETHOD GetPropertyAsSupports(const PRUnichar *propertyName, nsISupports **_retval) { return _to GetPropertyAsSupports(propertyName, _retval); } \
  143.   NS_IMETHOD SetPropertyAsSupports(const PRUnichar *propertyName, nsISupports *value) { return _to SetPropertyAsSupports(propertyName, value); } \
  144.   NS_IMETHOD GetProperty(const PRUnichar *propertyName, PRUnichar **_retval) { return _to GetProperty(propertyName, _retval); } \
  145.   NS_IMETHOD SetProperty(const PRUnichar *propertyName, const PRUnichar *propertyValue) { return _to SetProperty(propertyName, propertyValue); } \
  146.   NS_IMETHOD RemoveProperty(const PRUnichar *propertyName) { return _to RemoveProperty(propertyName); } \
  147.   NS_IMETHOD GetParentBox(nsIDOMElement * *aParentBox) { return _to GetParentBox(aParentBox); } \
  148.   NS_IMETHOD GetFirstChild(nsIDOMElement * *aFirstChild) { return _to GetFirstChild(aFirstChild); } \
  149.   NS_IMETHOD GetLastChild(nsIDOMElement * *aLastChild) { return _to GetLastChild(aLastChild); } \
  150.   NS_IMETHOD GetNextSibling(nsIDOMElement * *aNextSibling) { return _to GetNextSibling(aNextSibling); } \
  151.   NS_IMETHOD GetPreviousSibling(nsIDOMElement * *aPreviousSibling) { return _to GetPreviousSibling(aPreviousSibling); } \
  152.   NS_IMETHOD GetLookAndFeelMetric(const PRUnichar *propertyName, PRUnichar **_retval) { return _to GetLookAndFeelMetric(propertyName, _retval); } 
  153.  
  154. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  155. #define NS_FORWARD_SAFE_NSIBOXOBJECT(_to) \
  156.   NS_IMETHOD GetElement(nsIDOMElement * *aElement) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetElement(aElement); } \
  157.   NS_IMETHOD GetLayoutManager(nsIBoxLayoutManager * *aLayoutManager) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLayoutManager(aLayoutManager); } \
  158.   NS_IMETHOD SetLayoutManager(nsIBoxLayoutManager * aLayoutManager) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLayoutManager(aLayoutManager); } \
  159.   NS_IMETHOD GetPaintManager(nsIBoxPaintManager * *aPaintManager) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPaintManager(aPaintManager); } \
  160.   NS_IMETHOD SetPaintManager(nsIBoxPaintManager * aPaintManager) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPaintManager(aPaintManager); } \
  161.   NS_IMETHOD GetX(PRInt32 *aX) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetX(aX); } \
  162.   NS_IMETHOD GetY(PRInt32 *aY) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetY(aY); } \
  163.   NS_IMETHOD GetScreenX(PRInt32 *aScreenX) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetScreenX(aScreenX); } \
  164.   NS_IMETHOD GetScreenY(PRInt32 *aScreenY) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetScreenY(aScreenY); } \
  165.   NS_IMETHOD GetWidth(PRInt32 *aWidth) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWidth(aWidth); } \
  166.   NS_IMETHOD GetHeight(PRInt32 *aHeight) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHeight(aHeight); } \
  167.   NS_IMETHOD GetPropertyAsSupports(const PRUnichar *propertyName, nsISupports **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPropertyAsSupports(propertyName, _retval); } \
  168.   NS_IMETHOD SetPropertyAsSupports(const PRUnichar *propertyName, nsISupports *value) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPropertyAsSupports(propertyName, value); } \
  169.   NS_IMETHOD GetProperty(const PRUnichar *propertyName, PRUnichar **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProperty(propertyName, _retval); } \
  170.   NS_IMETHOD SetProperty(const PRUnichar *propertyName, const PRUnichar *propertyValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetProperty(propertyName, propertyValue); } \
  171.   NS_IMETHOD RemoveProperty(const PRUnichar *propertyName) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveProperty(propertyName); } \
  172.   NS_IMETHOD GetParentBox(nsIDOMElement * *aParentBox) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetParentBox(aParentBox); } \
  173.   NS_IMETHOD GetFirstChild(nsIDOMElement * *aFirstChild) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFirstChild(aFirstChild); } \
  174.   NS_IMETHOD GetLastChild(nsIDOMElement * *aLastChild) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLastChild(aLastChild); } \
  175.   NS_IMETHOD GetNextSibling(nsIDOMElement * *aNextSibling) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNextSibling(aNextSibling); } \
  176.   NS_IMETHOD GetPreviousSibling(nsIDOMElement * *aPreviousSibling) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPreviousSibling(aPreviousSibling); } \
  177.   NS_IMETHOD GetLookAndFeelMetric(const PRUnichar *propertyName, PRUnichar **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLookAndFeelMetric(propertyName, _retval); } 
  178.  
  179. #if 0
  180. /* Use the code below as a template for the implementation class for this interface. */
  181.  
  182. /* Header file */
  183. class nsBoxObject : public nsIBoxObject
  184. {
  185. public:
  186.   NS_DECL_ISUPPORTS
  187.   NS_DECL_NSIBOXOBJECT
  188.  
  189.   nsBoxObject();
  190.  
  191. private:
  192.   ~nsBoxObject();
  193.  
  194. protected:
  195.   /* additional members */
  196. };
  197.  
  198. /* Implementation file */
  199. NS_IMPL_ISUPPORTS1(nsBoxObject, nsIBoxObject)
  200.  
  201. nsBoxObject::nsBoxObject()
  202. {
  203.   /* member initializers and constructor code */
  204. }
  205.  
  206. nsBoxObject::~nsBoxObject()
  207. {
  208.   /* destructor code */
  209. }
  210.  
  211. /* readonly attribute nsIDOMElement element; */
  212. NS_IMETHODIMP nsBoxObject::GetElement(nsIDOMElement * *aElement)
  213. {
  214.     return NS_ERROR_NOT_IMPLEMENTED;
  215. }
  216.  
  217. /* attribute nsIBoxLayoutManager layoutManager; */
  218. NS_IMETHODIMP nsBoxObject::GetLayoutManager(nsIBoxLayoutManager * *aLayoutManager)
  219. {
  220.     return NS_ERROR_NOT_IMPLEMENTED;
  221. }
  222. NS_IMETHODIMP nsBoxObject::SetLayoutManager(nsIBoxLayoutManager * aLayoutManager)
  223. {
  224.     return NS_ERROR_NOT_IMPLEMENTED;
  225. }
  226.  
  227. /* attribute nsIBoxPaintManager paintManager; */
  228. NS_IMETHODIMP nsBoxObject::GetPaintManager(nsIBoxPaintManager * *aPaintManager)
  229. {
  230.     return NS_ERROR_NOT_IMPLEMENTED;
  231. }
  232. NS_IMETHODIMP nsBoxObject::SetPaintManager(nsIBoxPaintManager * aPaintManager)
  233. {
  234.     return NS_ERROR_NOT_IMPLEMENTED;
  235. }
  236.  
  237. /* readonly attribute long x; */
  238. NS_IMETHODIMP nsBoxObject::GetX(PRInt32 *aX)
  239. {
  240.     return NS_ERROR_NOT_IMPLEMENTED;
  241. }
  242.  
  243. /* readonly attribute long y; */
  244. NS_IMETHODIMP nsBoxObject::GetY(PRInt32 *aY)
  245. {
  246.     return NS_ERROR_NOT_IMPLEMENTED;
  247. }
  248.  
  249. /* readonly attribute long screenX; */
  250. NS_IMETHODIMP nsBoxObject::GetScreenX(PRInt32 *aScreenX)
  251. {
  252.     return NS_ERROR_NOT_IMPLEMENTED;
  253. }
  254.  
  255. /* readonly attribute long screenY; */
  256. NS_IMETHODIMP nsBoxObject::GetScreenY(PRInt32 *aScreenY)
  257. {
  258.     return NS_ERROR_NOT_IMPLEMENTED;
  259. }
  260.  
  261. /* readonly attribute long width; */
  262. NS_IMETHODIMP nsBoxObject::GetWidth(PRInt32 *aWidth)
  263. {
  264.     return NS_ERROR_NOT_IMPLEMENTED;
  265. }
  266.  
  267. /* readonly attribute long height; */
  268. NS_IMETHODIMP nsBoxObject::GetHeight(PRInt32 *aHeight)
  269. {
  270.     return NS_ERROR_NOT_IMPLEMENTED;
  271. }
  272.  
  273. /* nsISupports getPropertyAsSupports (in wstring propertyName); */
  274. NS_IMETHODIMP nsBoxObject::GetPropertyAsSupports(const PRUnichar *propertyName, nsISupports **_retval)
  275. {
  276.     return NS_ERROR_NOT_IMPLEMENTED;
  277. }
  278.  
  279. /* void setPropertyAsSupports (in wstring propertyName, in nsISupports value); */
  280. NS_IMETHODIMP nsBoxObject::SetPropertyAsSupports(const PRUnichar *propertyName, nsISupports *value)
  281. {
  282.     return NS_ERROR_NOT_IMPLEMENTED;
  283. }
  284.  
  285. /* wstring getProperty (in wstring propertyName); */
  286. NS_IMETHODIMP nsBoxObject::GetProperty(const PRUnichar *propertyName, PRUnichar **_retval)
  287. {
  288.     return NS_ERROR_NOT_IMPLEMENTED;
  289. }
  290.  
  291. /* void setProperty (in wstring propertyName, in wstring propertyValue); */
  292. NS_IMETHODIMP nsBoxObject::SetProperty(const PRUnichar *propertyName, const PRUnichar *propertyValue)
  293. {
  294.     return NS_ERROR_NOT_IMPLEMENTED;
  295. }
  296.  
  297. /* void removeProperty (in wstring propertyName); */
  298. NS_IMETHODIMP nsBoxObject::RemoveProperty(const PRUnichar *propertyName)
  299. {
  300.     return NS_ERROR_NOT_IMPLEMENTED;
  301. }
  302.  
  303. /* readonly attribute nsIDOMElement parentBox; */
  304. NS_IMETHODIMP nsBoxObject::GetParentBox(nsIDOMElement * *aParentBox)
  305. {
  306.     return NS_ERROR_NOT_IMPLEMENTED;
  307. }
  308.  
  309. /* readonly attribute nsIDOMElement firstChild; */
  310. NS_IMETHODIMP nsBoxObject::GetFirstChild(nsIDOMElement * *aFirstChild)
  311. {
  312.     return NS_ERROR_NOT_IMPLEMENTED;
  313. }
  314.  
  315. /* readonly attribute nsIDOMElement lastChild; */
  316. NS_IMETHODIMP nsBoxObject::GetLastChild(nsIDOMElement * *aLastChild)
  317. {
  318.     return NS_ERROR_NOT_IMPLEMENTED;
  319. }
  320.  
  321. /* readonly attribute nsIDOMElement nextSibling; */
  322. NS_IMETHODIMP nsBoxObject::GetNextSibling(nsIDOMElement * *aNextSibling)
  323. {
  324.     return NS_ERROR_NOT_IMPLEMENTED;
  325. }
  326.  
  327. /* readonly attribute nsIDOMElement previousSibling; */
  328. NS_IMETHODIMP nsBoxObject::GetPreviousSibling(nsIDOMElement * *aPreviousSibling)
  329. {
  330.     return NS_ERROR_NOT_IMPLEMENTED;
  331. }
  332.  
  333. /* wstring getLookAndFeelMetric (in wstring propertyName); */
  334. NS_IMETHODIMP nsBoxObject::GetLookAndFeelMetric(const PRUnichar *propertyName, PRUnichar **_retval)
  335. {
  336.     return NS_ERROR_NOT_IMPLEMENTED;
  337. }
  338.  
  339. /* End of implementation class template. */
  340. #endif
  341.  
  342. nsresult
  343. NS_NewBoxObject(nsIBoxObject** aResult);
  344.  
  345. #endif /* __gen_nsIBoxObject_h__ */
  346.